/**
 * Created by XiaAo on 2017/3/20.
 * function :老师路由配置
 * author ：xiaao
 * data : 2017-3-20
 */

var ngModuleLibMember = angular.module("ngModule_LibMember", []);

ngModuleLibMember.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {

    // $urlRouterProvider.otherwise("");
    $urlRouterProvider.when("", "/teacher");


    $stateProvider
    //成员主路由控制
        .state('libMember', {
            url: '/libMember',
            templateUrl: '../View/ui-view/libMember/libMember.html',
            controller: 'libMemberCtrl'
        })
        .state('libMember.memberDefault', {
            url: '/memberDefault',
            templateUrl: '../View/ui-view/libMember/memberDefault.html'
        })
        .state('libMember.memberDefault.zhouxiaogen', {
            url: '/zhouxiaogen',
            templateUrl: '../View/ui-view/libMember/zhouxiaogen.html'
        })

        //老师路由
        .state('libMember.teacher', {
            url: '/teacher',
            templateUrl: '../View/ui-view/libMember/teacher.html',
            controller: 'teacherCtrl'
        })

        //博士导航路由
        .state('libMember.ph-D', {
            url: '/ph-D',
            templateUrl: '../View/ui-view/libMember/ph.D.html',
            controller: 'phDCtrl'
        })
        // .state('libMember.ph-D.zhouxiaogen', {
        //     url: '/zhouxiaogen',
        //     templateUrl: '../View/ui-view/libMember/ph-D/zhouxiaogen.html',
        //     controller:'studentCtrl'
        // })
        // .state('libMember.ph-D.haoxioahu', {
        //     url: '/haoxiaohu',
        //     templateUrl: '../View/ui-view/libMember/ph-D/haoxiaohu.html'
        // })
        // .state('libMember.ph-D.wangyongdong', {
        //     url: '/wangyongdong',
        //     templateUrl: '../View/ui-view/libMember/ph-D/wangyongdong.html'
        // })
        // .state('libMember.ph-D.wangliujing', {
        //     url: '/wangliujing',
        //     templateUrl: '../View/ui-view/libMember/ph-D/wangliujing.html'
        // })

        //硕士导航路由
        .state('libMember.postgraduate', {
            url: '/postgraduate',
            templateUrl: '../View/ui-view/libMember/postgraduate.html',
            controller: 'postgraduateCtrl'
        })
        // .state('libMember.postgraduate.chenkai', {
        //     url: '/chenkai',
        //     template: '陈凯'
        //     // templateUrl: '../View/ui-view/libMember/postgraduate.html'
        // })
        // .state('libMember.postgraduate.yaojun', {
        //     url: '/yaojun',
        //     template: '姚俊'
        //     // templateUrl: '../View/ui-view/libMember/postgraduate.html'
        // })

        //优秀毕业生导航路由
        .state('libMember.outstandingStudent', {
            url: '/outstandingStudent',
            templateUrl: '../View/ui-view/libMember/outstandingStudent.html',
            controller: 'outstandingStudentCtrl'
        })
}]);


// function phDCtrl() {
//     console.log('执行到phd');
//     // TESTT.add.testt();
//
//     // var testt = require("./ngModule/TESTT()");
//     // $('#btnCreat').onclick = function () {
//     //         console.log("#######");
//     //         testt();
//     //     }
//
//
// }

module.exports = ngModuleLibMember;

